package com.gzedu.module.modle.user;

import java.util.ArrayList;
import java.util.List;

import com.gzedu.common.sys.model.BaseEntity;
import com.gzedu.module.modle.role.Role;

public class User extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 用户名
	 */
    private String userName;

    /**
     * 密码
     */
    private String password;

    /**
     * 年龄
     */
    private int age;
    
    /**
     * 所属角色
     */
    private List<Role> roles = new ArrayList<Role>();

    /**
     * 名称
     */
    private String name;
    /**
     * 角色编号
     */
    private String roleCode;

	public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}
}